package com.baizhi.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

@AllArgsConstructor
@NoArgsConstructor
@Setter
@Getter
@ToString
public class Article implements Serializable {

    //文章实体类
    private Integer articleId;
    private String articleName;
    private String articleImage;
    private String articleContent;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date articleDate;
    //外键上师  定义成对象  (未实现：发布时注意mapper文件中和页面的name属性如何使用guruId)
    private Guru guru;
    private Integer guruId;

}
